package com.joysuch.wwyt.bp.bean.contractor;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.time.LocalDate;

/**
 * 承包商施工管理
 *
 * @author sumeiqi
 * 2021-01-12
 */
@Data
public class BpContractorConstructionRecordBean {

    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("承包商施工管理编码")
    private String code;
    @ApiModelProperty("承包商表Id")
    @NotNull(field = "承包商ID不能为空")
    private Long contractorId;
    @ApiModelProperty("承包商单位名称")
    private String contractorName;
    @ApiModelProperty("特种设备安装许可证")
    @Length(max = 64,message = "特种设备安装许可证长度不超过{max}字符")
    private String specialEquipmentErectionPermit;
    @ApiModelProperty("营业执照字号")
    @Length(max = 64,message = "特种设备安装许可证长度不超过{max}字符")
    private String businessLicenseNo;
    @ApiModelProperty("施工队伍营业等级")
    private String constructionTeamLevel;
    @ApiModelProperty("施工队伍负责人")
    @Length(max = 64,message = "施工队伍负责人长度不超过{max}字符")
    private String constructionTeamDirector;
    @ApiModelProperty("施工队负责人联系电话")
    @Length(max = 32,message = "施工队负责人联系电话长度不超过{max}字符")
    private String constructionTeamDirectorPhone;
    @ApiModelProperty("施工队伍负责人身份证")
    @Length(max = 32,message = "施工队负责人身份证长度不超过{max}字符")
    private String constructionTeamDirectorIdCard;
    @ApiModelProperty("安全负责人")
    @Length(max = 64,message = "安全负责人长度不超过{max}字符")
    private String safetyDirector;
    @ApiModelProperty("安全负责人联系电话")
    @Length(max = 32,message = "安全负责人联系电话长度不超过{max}字符")
    private String safetyDirectorPhone;
    @ApiModelProperty("安全负责人身份证")
    @Length(max = 32,message = "安全负责人身份证长度不超过{max}字符")
    private String safetyDirectorIdCard;
    @ApiModelProperty("进厂日期")
    private LocalDate intoFactoryDate;
    @ApiModelProperty("考核日期")
    private LocalDate inspectionDate;
    @ApiModelProperty("是否在黑名单 0 否; 1 是")
    private String isBlacklist;
    @ApiModelProperty("承包商信息")
    private BpContractorBean contractor;

    @ApiModelProperty("项目名称")
    private String projectName;
    @ApiModelProperty("施工日期")
    private LocalDate doWorkDate;
    @ApiModelProperty("完工验收日期")
    private LocalDate checkWorkDate;
    @ApiModelProperty("完工评价")
    private String overOpinion;

}
